package day07;

public class PrimeNumber {
    public static void main(String[] args) {
        for (int num=1;num<10;num++){
            for (int i=1;i<=num;i++){
                System.out.print(i+"*"+num+"="+num*i+"\t");
            }
            System.out.println();
        }































        /*
        for (int num=2;num<=100;num++){
            boolean flag = true;
            for (int i=2;i<=num/2;i++){
                if (num%i==0){
                    flag = false;
                    break;
                }
            }
            if (flag){
                System.out.print(num+"\t");
            }
        }

         */
        /*
        for (int num=25;num<=100;num++){
            boolean flag = true;//假设是素数
            for (int i=2;i<=num/2;i++){
                if (num%i==0){
                    flag = false;//修改为不是素数
                    break;
                }
            }
            if (flag){
                System.out.print(num+"\t");
            }
        }
         */
    }
}
